package com.itheima.day07_Object_oriented_fundamentals;

public class Demo2_test {
    public static void main(String[] args) {
        Student s1 = new Student();
        s1.name = "张三";
        s1.printThis();
        Student s2 = s1;
        s2.name = "李四";
        System.out.println("s1.name = " + s1.name);
        System.out.println("s2.name = " + s2.name);

        s1.printThis();
        s2.printThis();

        Student s3 = new Student();
        s3.score = 45;
        s3.printPass(100);
    }
}
